package com.jsbj.user.entities;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 系统菜单-页面-按钮表
 * </p>
 *
 * @author jsbj
 * @since 2022-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysPermissionAll对象", description="系统菜单-页面-按钮表")
public class SysPermissionAll implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "表id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "系统表系统编码")
    private String systemCode;

    @ApiModelProperty(value = "父级菜单id")
    private String parentId;

    @ApiModelProperty(value = "菜单编码")
    private String permissionCode;

    @ApiModelProperty(value = "菜单名字")
    private String permissionName;

    @ApiModelProperty(value = "菜单类型(存放字典key，具体名称看字典表)")
    private String permissionTypeKey;

    @ApiModelProperty(value = "菜单类型（存放字典value，具体名称看字典表）")
    private String permissionTypeValue;

    @ApiModelProperty(value = "菜单图标（pc）")
    private String pcIcon;

    @ApiModelProperty(value = "菜单图标（app）")
    private String appIcon;

    @ApiModelProperty(value = "是否外链 0否，1是")
    private String isFrame;

    @ApiModelProperty(value = "路由地址")
    private String path;

    @ApiModelProperty(value = "应用标识")
    private String activeRule;

    @ApiModelProperty(value = "blank新窗口打开，inner当前窗口打开")
    private String openType;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否可用  0可用 1不可用")
    @TableField(fill = FieldFill.INSERT)
    private Integer disabled;

    @ApiModelProperty(value = "创建人用户ID")
    private String createrId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date createTime;

    @ApiModelProperty(value = "最后变更人用户ID")
    private String updateId;

    @ApiModelProperty(value = "最后变更时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    private List<SysPermissionAll> children;

    @ApiModelProperty(value = "菜单类型描述")
    @TableField(exist = false)
    private String permissionTypeDesc;

    @ApiModelProperty(value = "删除按钮")
    @TableField(exist = false)
    private boolean del;

    @ApiModelProperty(value = "创建时间")
    @TableField(exist = false)
    private String updateTimeStr;

    @ApiModelProperty(value = "app路由地址")
    private String appPath;

    @ApiModelProperty(value = "是否h5 true  false")
    private Boolean isH5;

    @ApiModelProperty(value = "是否h5 1true  0false")
    @TableField(exist = false)
    private String isH5Str;

}
